package com.ark.cloud.javacallnative.modules.storage.service.impl;

import com.ark.cloud.javacallnative.entity.ReplyCmd;
import com.ark.cloud.javacallnative.modules.storage.mapper.ReplyCmdMapper;
import com.ark.cloud.javacallnative.modules.storage.service.ReplyCmdService;
import com.ark.cloud.javacallnative.util.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/2  下午5:15
 * @description
 */
@Service
public class ReplyCmdServiceImpl implements ReplyCmdService {
    @Autowired
    ReplyCmdMapper replyCmdDao;

    @Override
    public void saveReplyCmdInfo(ReplyCmd replyCmd) {
        // 设置UUID
        replyCmd.setId(UUIDUtil.next());
        System.out.println("replyCmd:"+replyCmd);

        replyCmdDao.insert(replyCmd);
    }
}
